package com.example.mytayunapi.Service;

import com.example.mytayunapi.Entity.LoginLogsInfo;
import com.example.mytayunapi.Mapper.LoginlogsInfoMapper;
import com.example.mytayunapi.Vo.LoginLogUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginlogsInfoServiceImpl implements LoginlogsInfoService{
    @Autowired
    private LoginlogsInfoMapper loginlogsInfoMapper;

    @Override
    public Integer InsertintoLogin(LoginLogsInfo loginLogsinfo) {
        return loginlogsInfoMapper.InsertintoLogin(loginLogsinfo);
    }

    @Override
    public void saveLoginLog(LoginLogsInfo loginLogsinfo) {
        loginlogsInfoMapper.InsertintoLogin(loginLogsinfo);

    }

    @Override
    public List<LoginLogUser> getLoginLogs() {
        return loginlogsInfoMapper.getLoginLogs();
    }

}
